package com.cgnpc.scp.common.utils;

import java.util.List;

public class ListUtil {

    public static int getListSizeWith0(List<?> list) {
        return list == null ? 0 : list.size();
    }

    public static void removeAllNull(List<?> list) {
        if (getListSizeWith0(list) > 0) {
            while (list.remove(null)) {

            }
        }
    }

}
